# 4.打印1~20所有数的乘积
n1=1
cj=1
while n1<=20:
    cj*=n1
    n1 += 1
print(cj)

# 5.打印1~30所有数的平方的和
n2=1
sum1=0
while n2<=30:
    n=n2*n2
    sum1+=n
    n2 += 1
print(sum1)

# 6.打印1~50所有奇数的和
n3=1
sum2=0
while n3<=50:
    sum1+=n3
    n3 += 2
print(sum2)

# 7.打印1~20所有奇数的乘积
n7=1
cj7=1
while n7<=20:
    cj7*=n7
    n7 += 2
print(cj7)
# 8.打印1~40所有奇数的平方的和
n8=1
sum8=0
while n8<=40:
    sum8+=n8**2
    n8 += 2
print(sum8)
# 9.打印200~300所有数的和
n9=200
sum9=0
while n9<=300:
    sum9+=n9
    n9+=1
print(sum9)

# 10.打印 1-100之内小于等于30 和 大于等于 70的所有数
n10=1
while n10<=100:
    if n10<=30 or n10>=70:
        print(n10)
    n10+=1





